import { apiResquest } from '../utils/http.js'

// 获取做题题目
export const getexercisequestions = (data) => {
    return apiResquest({
        url: '/getexercisequestions',
        method: 'POST',
        data
    })
}

// 新建组卷题目
export const creategroup = (data) => {
    return apiResquest({
        url: '/creategroup',
        method: 'POST',
        data
    })
}

// 判断是否存在之前的组卷记录
export const getgrouprecord = (data) => {
    return apiResquest({
        url: '/getgrouprecord',
        method: 'POST',
        data
    })
}

// 获取科目列表
export const getsubjectlist = (data) => {
	return apiResquest({
		url: '/getsubjectlist',
		method: 'GET',
		data
	})
}

// 修改做题记录
export const setrecords = (data) => {
    return apiResquest({
        url: '/setrecords',
        method: 'POST',
        data
    })
}

// 获取历史记录
export const gethistorylist = (data) => {
	return apiResquest({
		url: '/gethistorylist',
		method: 'GET',
		data
	})
}

// 提交答案
export const submitanswers = (data) => {
    return apiResquest({
        url: '/submitanswers',
        method: 'POST',
        data
    })
}

// 获取成绩页面信息
export const getgrade = (data) => {
	return apiResquest({
		url: '/getgrade',
		method: 'GET',
		data
	})
}

// 获取错题列表
export const getwronglist = (data) => {
	return apiResquest({
		url: '/getwronglist',
		method: 'POST',
		data
	})
}

// 根据问题编号获取问题
export const getquestions = (data) => {
	return apiResquest({
		url: '/getquestions',
		method: 'POST',
		data
	})
}

// 获取错题列表
export const getcollectlist = (data) => {
	return apiResquest({
		url: '/getcollectlist',
		method: 'POST',
		data
	})
}

// 获取收藏题目
export const getcollectquestions = (data) => {
	return apiResquest({
		url: '/getcollectquestions',
		method: 'POST',
		data
	})
}

// 取消收藏
export const delcollectquestions = (data) => {
	return apiResquest({
		url: '/delcollectquestions',
		method: 'POST',
		data
	})
}

// 添加收藏
export const addcollectquestion = (data) => {
	return apiResquest({
		url: '/addcollectquestion',
		method: 'POST',
		data
	})
}

// 获取评论列表
export const getcommentlist = (data) => {
	return apiResquest({
		url: '/getcommentlist',
		method: 'GET',
		data
	})
}

// 添加收藏
export const addcomment = (data) => {
	return apiResquest({
		url: '/addcomment',
		method: 'POST',
		data
	})
}

// 添加问题
export const setquestion = (data) => {
	return apiResquest({
		url: '/setquestion',
		method: 'POST',
		data
	})
}

// 编写题目文档下下载
export const downloadtext = (data) => {
	return apiResquest({
		url: '/downloadtext',
		method: 'POST',
		data
	})
}

// 举报评论
export const setcomment = (data) => {
	return apiResquest({
		url: '/setcomment',
		method: 'POST',
		data
	})
}

// 删除收藏夹
export const delcollectfolder = (data) => {
	return apiResquest({
		url: '/delcollectfolder',
		method: 'POST',
		data
	})
}

// 获取某个科目试卷
export const gettestpaperlist = (data) => {
	return apiResquest({
		url: '/gettestpaperlist',
		method: 'GET',
		data
	})
}

// 获取试卷内容
export const gettestquestions = (data) => {
	return apiResquest({
		url: '/gettestquestions',
		method: 'POST',
		data
	})
}

// 修改试卷做题记录
export const settestrecords = (data) => {
	return apiResquest({
		url: '/settestrecords',
		method: 'POST',
		data
	})
}

// 提交试卷
export const submittestpaper = (data) => {
	return apiResquest({
		url: '/submittestpaper',
		method: 'POST',
		data
	})
}
